package com.wft.prototype;

public class Client {
    private Prototype prototype;

    public Client(Prototype prototype) {
        this.prototype = prototype;
    }

    public void operation(){
        System.out.println(this.prototype.clone());
    }

    public static void main(String[] args) {
        new Client(ConcretePrototypeA::new).operation();
        new Client(ConcretePrototypeB::new).operation();
    }
}
